package com.example.emos.wx.user.db.dao;


import com.example.emos.wx.user.model.pojo.TbRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Mapper
public interface TbRoleDao {
     ArrayList<HashMap> searchRoleOwnPermission(int id);

     ArrayList<HashMap> searchAllPermission();

     int insertRole(TbRole role);

     int updateRolePermissions(TbRole role);

     List<TbRole> searchAllRole();

     long searchRoleUsersCount(int id);

     int deleteRoleById(int id);
}
